import { Button, Space } from '@mao-fu/sun-ui';
import React from 'react';

const App: React.FC = () => {
  return (
    <Space wrap>
      <Button
        prefixIcon={
          <div
            style={{
              width: '10px',
              height: '10px',
              borderRadius: '50%',
              backgroundColor: 'red',
            }}
          ></div>
        }
      >
        Click me
      </Button>
      <Button
        loading
        prefixIcon={
          <div
            style={{
              width: '10px',
              height: '10px',
              borderRadius: '50%',
              backgroundColor: 'red',
            }}
          ></div>
        }
      >
        Click me
      </Button>
      <Button
        loading
        suffixIcon={
          <div
            style={{
              width: '10px',
              height: '10px',
              borderRadius: '50%',
              backgroundColor: 'red',
            }}
          ></div>
        }
      >
        Click me
      </Button>
    </Space>
  );
};

export default App;
